package main

import (
	"fmt"
	"sort"
)

func main() {
	s:=[]int{1,22,3,4}
	s2 := s[1:3]
	fmt.Println(s)
	fmt.Println(len(s))
	fmt.Println(cap(s))
	fmt.Println(s2)
	fmt.Println(len(s2))
	fmt.Println(cap(s2))
	fmt.Println(s2[0])
	s3 := s2[:cap(s2)]
	fmt.Println(s3)

	aa := new([10]int)
	fmt.Println(aa)
	fmt.Println(*aa)

	//sort
	sort.Ints(s)
	fmt.Println(s)

	st1:=[]string{"hello eworld","abcde"}
	fmt.Println(st1)
	sort.Strings(st1)
	fmt.Println(st1)
}